package com.itheima.dao.impl;

import com.itheima.dao.TeachDao;

/**
 * @Author 王加鑫
 * @Date 2021/7/21 21:30
 * @Since JDK 1.9
 */
public class TeachDaoImpl implements TeachDao {

    private int age;
    private String course;

    public void setAge(int age) {
        this.age = age;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    @Override
    public void teach() {
        System.out.println("王老师已经教了" + age + "年" + course + "学科");
    }
}
